package com.doctcloud.hisinfo.histable.domain.comm;

import com.doctcloud.common.core.annotation.Excel;
import com.doctcloud.common.core.annotation.TableDesc;
import lombok.*;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@EqualsAndHashCode(of = {"ioSort"})
@TableDesc("出入库类型字典")
public class DrugIOSortDictDo implements Serializable {
    private static final long serialVersionUID = 1L;
    /** 出入库类型名称 */
    @Excel(name = "出入库类型名称")
    @NotBlank(message = "出入库类型名称不得为空")
    private String ioSort;
    /** 出入库标记 */
    @Excel(name = "出入库标记")
    @NotNull(message = "出入库标记不得为空")
    private Integer ioIndicator;

    @Data
    public static class primaryKey {
        private final String accountName;
        public primaryKey(String accountName) {
            this.accountName = accountName;
        }
    }
}
